home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
p_man
/
cat3c
/
bstring.z
/
bstring
Wrap
Text File
|
1998-10-20
|
3KB
|
67 lines
BBBBSSSSTTTTRRRRIIIINNNNGGGG((((3333CCCC)))) BBBBSSSSTTTTRRRRIIIINNNNGGGG((((3333CCCC))))
NNNNAAAAMMMMEEEE
bcopy, bcmp, blkclr, bzero, ffs - bit and byte string operations
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
####iiiinnnncccclllluuuuddddeeee <<<<ssssttttrrrriiiinnnnggggssss....hhhh>>>>
vvvvooooiiiidddd bbbbccccooooppppyyyy((((ccccoooonnnnsssstttt vvvvooooiiiidddd ****ssssrrrrcccc,,,, vvvvooooiiiidddd ****ddddsssstttt,,,, ssssiiiizzzzeeee____tttt lllleeeennnnggggtttthhhh))));;;;
iiiinnnntttt bbbbccccmmmmpppp((((ccccoooonnnnsssstttt vvvvooooiiiidddd ****bbbb1111,,,, ccccoooonnnnsssstttt vvvvooooiiiidddd ****bbbb2222,,,, ssssiiiizzzzeeee____tttt lllleeeennnnggggtttthhhh))));;;;
vvvvooooiiiidddd bbbbzzzzeeeerrrroooo((((vvvvooooiiiidddd ****bbbb,,,, ssssiiiizzzzeeee____tttt lllleeeennnnggggtttthhhh))));;;;
vvvvooooiiiidddd bbbbllllkkkkccccllllrrrr((((vvvvooooiiiidddd ****bbbb,,,, ssssiiiizzzzeeee____tttt lllleeeennnnggggtttthhhh))));;;;
iiiinnnntttt ffffffffssss((((uuuunnnnssssiiiiggggnnnneeeedddd iiiinnnntttt iiii))));;;;
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
The functions _b_c_o_p_y, _b_c_m_p, and _b_z_e_r_o operate on variable length strings
of bytes. They do not check for null bytes as the routines in _s_t_r_i_n_g(3)
do.
_b_c_o_p_y copies _l_e_n_g_t_h bytes from string _s_r_c to the string _d_s_t.
_b_c_m_p compares byte string _b_1 against byte string _b_2, returning zero if
they are identical, non-zero otherwise. Both strings are assumed to be
_l_e_n_g_t_h bytes long.
_b_z_e_r_o and _b_l_k_c_l_r place _l_e_n_g_t_h zero bytes in the string _b.
_f_f_s finds the first bit set in the argument passed it and returns the
index of that bit. Bits are numbered starting at 1. A return value of 0
indicates the value passed is zero.
NNNNOOOOTTTTEEEE
The use of overlapping buffers with _b_c_o_p_y is not guaranteed to work. Use
the _m_e_m_m_o_v_e(3C) function if the buffers might overlap.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
memory(3c)
PPPPaaaaggggeeee 1111